<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>添加</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/css/fileinput.min.css">

    <style>
        .form-control {
            margin-bottom: 8px;
        }

        .form-control:focus,
        .single-line:focus {
            border-color: #0e9aef !important;
        }

        .radio-inline {
            line-height: 5px;
        }
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app" v-cloak>

    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <form id="Form" autocomplete="off">
                <div style="padding: 0">
                    <input type="hidden" name="id">
                    <input type="hidden" name="version" value="0">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">标题</label>
                        <div class="col-sm-10">
                            <input type="text" id="title" class="form-control" name="title" placeholder="请输入标题">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">摘要</label>
                        <div class="col-sm-10">
                            <input type="text" id="digest" class="form-control" name="digest" placeholder="请输入摘要">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">阅读原文URL</label>
                        <div class="col-sm-10">
                            <div class="col-sm-10" style="padding: 0">
                                <input type="text" class="form-control" id="contentUrl" name="contentUrl" placeholder="请输入阅读原文URL">
                            </div>
                            <div class="col-sm-2" style="padding: 0">
                                <a href="javascript:void(0);" @click="getWxArticle" class="form-control btn btn-default"
                                   style="width: 100%;background-color: #0d8ddb;color: white">获取微信文章</a>
                            </div>
                        </div>
                    </div>
<!--                    <div class="form-group">
                        <label class="col-sm-2 control-label">附件：视频URL</label>
                        <div class="col-sm-10">
                            <div class="col-sm-12" style="padding: 0">
                                <input type="text" class="form-control" name="videoUrl" placeholder="请输入视频URL，可为空。">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">附件：音频URL</label>
                        <div class="col-sm-10">
                            <div class="col-sm-12" style="padding: 0">
                                <input type="text" class="form-control" name="audioUrl" placeholder="请输入音频URL，可为空。">
                            </div>
                        </div>
                    </div>-->
                    <div class="form-group">
                        <label class="col-sm-2 control-label">门店</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="schoolId" >
                                <option v-if="schoolId == ''" value="">---公用---</option>
                                <option v-for="(value, key) in schoolList" :key="key" :value="key">{{value}}</option>
                            </select>
                        </div>
                    </div>
                    <input type="hidden" name="isShowPrint" value="0">
                    <input type="hidden" name="isShowShare" value="0">
                    <div class="form-group">
                        <label class="col-sm-2 control-label" style="text-align: center;line-height: 34px">是否置顶</label>
                        <div class="col-sm-4 form-group">
                            <select class="form-control" name="isTop">
                                <option value="1">置顶</option>
                                <option value="0" selected>不置顶</option>
                            </select>
                        </div>
                        <label class="col-sm-2 control-label" style="text-align: center;line-height: 34px">排序</label>
                        <div class="col-sm-4 form-group">
                            <input type="number" class="form-control" value="100" name="sort"
                                   placeholder="请输入排序（数字大的排在前面）">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" style="text-align: center;line-height: 34px">类型</label>
                        <div class="col-sm-4">
                            <select class="form-control" name="type" id="type" @change="changeType">
                                <option value="1">---资讯---</option>
<!--                                <option value="2">-&#45;&#45;案例-&#45;&#45;</option>-->
                                <option value="3">---评测---</option>
                            </select>
                        </div>
                        <label class="col-sm-2 control-label" style="text-align: center;line-height: 34px">分类</label>
                        <div class="col-sm-4">
                            <select class="form-control" name="articleType">
                                <option v-for="(item,index) in selects" :value="item.id">{{item.name}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">关联的对象</label>
                        <div class="col-sm-10">
                            <input type="hidden" name="objectId">
                            <input type="text" class="form-control" name="objectName" @click="selectOp" placeholder="点击选择对象">
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <label class="form-inline">内容</label>
                        <div>
                            <input id="articleContent" type="hidden" name="content">
                            <div id="editor">
                            </div>
                        </div>
                    </div>
                    <div class="form-group" style="margin-top: 10px">
                        <label class="form-inline">图片<font style="color: red">尺寸：【360 * 220】</font></label>
                        <input id="articleImg" type="hidden" name="imgId">
                        <input type="hidden" id="oldImgId" name="oldImgId">
                        <div class="file-loading">
                            <input id="fileUploadBtn" type="file" name="file">
                        </div>
                    </div>

                </div>

                <div style="text-align: center">
                    <a href="javascript:parent.layer.closeAll();" class="btn btn-default" style="width: 10%;">关 闭</a>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-if="permission(0)">保存</button>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-else="permission(1)">保存</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="../../../../../../public-tools/pc/plugins/wangEditor/wangEditor-video.js"></script>
<script src="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/js/fileinput.min.js"></script>
<script src="../../../../js/content-manage/article/material/edit.js"></script>
</body>
</html>
